﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DanhSachNguoiDung.aspx.cs" Inherits="Cart.DanhSachNguoiDung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function XoaNguoiDung(id)
        {
            var answer = confirm("Bạn có chắc muốn xóa người dùng này ko ?")
            if (answer) {
                ob_post.AddParam('strNguoiDungId', id);
                ob_post.post(null, "XoaNguoiDung", ResultXoaNguoiDung);
            }
        }
        function ResultXoaNguoiDung(result, ex)
        {
            alert(result);
            window.location = "DanhSachNguoiDung.aspx";
        }

    </script>

    <div class="content_buy_cart">
        <div class="buy_cart_top">
        </div>

        <div class="buy_cart_content">
            <div class="profile_breadcrumbs">
                <ul>
                    <li>
                        <a class="" href="DanhSachSanPham.aspx" title="">Sản phẩm
                        </a>
                    </li>

                    <li>|
                    </li>

                    <li>
                        <a class="" href="Ds_LoaiSP.aspx" title="">Loại sản phẩm
                        </a>
                    </li>

                    <li>|
                    </li>

                    <li>
                        <a class="active" href="DanhSachNguoiDung.aspx" title="">Người dùng
                        </a>
                    </li>
                    <li>|
                    </li>
                    <li>
                        <a class="" href="ThongKeHoaDon.aspx" title="">Hóa đơn bán hàng
                        </a>
                    </li>
                </ul>

            </div>

            <!-- cart-detail-begin -->
            <p class="buy_cart_title">
                Danh sách tài khoản người sử dụng
            </p>
            <div class="buy_cart_content_title">
                <span class="content_title_delete">Xóa</span>
                <span class="content_title_product">Email</span>
                <span class="content_title_quanlity">Họ tên</span>
                <span class="content_title_total">Quyền</span>

            </div>


            <table class="table_buy_cart_content" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <asp:ListView ID="lvDanhSach" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td class="cart_content_delete"><a class="delete" href="#" onclick="XoaNguoiDung('<%# Eval("Id") %>')" id="cart_delete_710_1211" title=""></a></td>
                                <td class="cart_content_product"><%# Eval("Email") %></td>
                                <td class="cart_content_quanlity"><%# Eval("HoTen") %></td>
                                <td class="cart_content_total"><span id="product_710_1211"><%# Eval("TenQuyen") %></span></td>
                            </tr>
                        </ItemTemplate>
                    </asp:ListView>
                </tbody>
            </table>
            <!-- cart-detail-end -->

        </div>

        <div class="buy_cart_bottom">
        </div>
    </div>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>

